#include "log/app_log.h"

#include <string>

namespace cppc { namespace log {
bool initAppRollingFileLog(const std::string &appName, log::LogLevel level, int logMaxFileize,
                           int logMaxFiles, const std::string &logFilePath,
                           const std::string &logPattern) {
    std::string t_appName = appName;
    if (t_appName.empty()) {
        return false;
    } else {
        std::string t_logFilePath = logFilePath;
        bool initFlag =
            initRootRollingFileLog(level, t_logFilePath, logMaxFileize, logMaxFiles, logPattern);
        return initFlag;
    }
}

void closeAppLog() {
    closeAllLog();
}
}} // namespace cppc::log
